import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
import Home from '@/views/Home.vue'

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/echart',
    name: 'Echart',
    component: () => require('@/views/echarts')
  },
  {
    path: '/plumb',
    name: 'Plumb',
    component: () => require('@/views/plumb')
  },
  {
    path: '/onePlus',
    name: 'onePlus',
    component: () => require('@/views/onePlus')
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
